import {
  request
} from '@/utils/request'

export function rankList(data) {
  return request.get('/front/wx/article/ranking/list', data)
}

export function articleList(data) {
  return request.get('/front/wx/article/list', data, { queue: false })
}

export function articleUp(data) {
  return request.post('/front/wx/article', data)
}

export function articleGet(data) {
  return request.get('/front/wx/article/get/' + data, {})
}


export function articleGetRed(data) {
  return request.post('/front/wx/article/doPrize', data)
}

export function articleComment(data) {
  return request.post('/front/wx/article/comment', data)
}

export function delArticleComment(data) {
  return request.post('/front/wx/article/comment/delete', data)
}

export function sumData(data) {
  return request.post('/front/wx/article/sumInfo', data, { queue: false })
}